package com.ni.learning.exam.vo;

import com.our.learning.infrastructure.po.AnswerSheet;

/**
 * 答题卡响应对象
 * @author : Ice'Clean
 * @date : 2023-06-24
 */
public class AnswerSheetVO {
    /** 答卷 ID */
    private Integer id;
    /** 考试  ID */
    private Integer examId;
    /** 试卷 ID（向查询冗余） */
    private Integer paperId;
    /** 学生 ID */
    private Integer studentId;
    /** 总分 */
    private Integer score;
    /** 批改状态（0-未交卷，1-已交卷，2-未批改、3-已批改） */
    private Integer checked;
    /** 进入考试时间 */
    private String enterTime;
    /** 最后一次提交时间 */
    private String lastSubmitTime;

    public AnswerSheetVO(AnswerSheet answerSheet) {
        this.id = answerSheet.getId();
        this.examId = answerSheet.getExamId();
        this.paperId = answerSheet.getPaperId();
        this.studentId = answerSheet.getStudentId();
        this.score = answerSheet.getScore();
        this.checked = answerSheet.getChecked();
        this.enterTime = answerSheet.getCreateTime();
        this.lastSubmitTime = answerSheet.getUpdateTime();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getExamId() {
        return examId;
    }

    public void setExamId(Integer examId) {
        this.examId = examId;
    }

    public Integer getPaperId() {
        return paperId;
    }

    public void setPaperId(Integer paperId) {
        this.paperId = paperId;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Integer getChecked() {
        return checked;
    }

    public void setChecked(Integer checked) {
        this.checked = checked;
    }

    public String getEnterTime() {
        return enterTime;
    }

    public void setEnterTime(String enterTime) {
        this.enterTime = enterTime;
    }

    public String getLastSubmitTime() {
        return lastSubmitTime;
    }

    public void setLastSubmitTime(String lastSubmitTime) {
        this.lastSubmitTime = lastSubmitTime;
    }

    @Override
    public String toString() {
        return "AnswerSheetVO{" +
                "id=" + id +
                ", examId=" + examId +
                ", paperId=" + paperId +
                ", studentId=" + studentId +
                ", score=" + score +
                ", checked=" + checked +
                '}';
    }
}
